package com.wc.service;

import com.wc.bean.Breakdown;
import com.wc.bean.Menu;
import com.wc.bean.Role;
import com.wc.bean.User;
import com.wc.dao.BreakdownMapper;
import com.wc.dao.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class WcBreakdownServicelmpl implements WcBreakdownService {
    @Autowired
    BreakdownMapper breakdownMapper;


    @Override
    public int insertBreakdown(Map<String, Object> params) {
        return 0;
    }

    @Override
    public int updateBreakdown(Map<String, Object> params) {
        return 0;
    }

    @Override
    public int deleteBreakdown(String breakdownId) {
        return 0;
    }

    @Override
    public List<Breakdown> selectBreakdown(Map<String, Object> params) {
        List<Breakdown> Breakdowns = breakdownMapper.selectBreakdown(params);
        return Breakdowns;
    }

    @Override
    public int selectBreakdownCount(Map<String, Object> params) {
        return 0;
    }

    @Override
    public int selectSloveBy(String breakdownId) {
        return 0;
    }

    @Override
    public int updateBreakdownState(Map<String, Object> params) {
        return 0;
    }

    @Override
    public int adminUpdateState(Map<String, Object> params) {
        return 0;
    }
//    public List<User> login(Map<String,Object> map){
//        if(userMapper.queryUserByName(){
//            int r = userMapper.login();
//            System.out.println(r+"插入数据");
//            if(r == 1){
//                return 0;
//            }else{
//                return 2;
//            }
//        }
//
//    }
}
